package cn.com.dycc.party_org.member.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.dycc.common.entity.Pb_Integral_LogCount;
import cn.com.dycc.party_org.member.entity.AllInfo;
import cn.com.dycc.party_org.member.entity.CountMember;
import cn.com.dycc.party_org.member.entity.Member;
import cn.com.dycc.party_org.member.entity.UserAndMember;
import cn.com.dycc.party_org.member.entity.UserChildAndMember;
import cn.com.dycc.party_org.member.param.FindMemberParam;
import cn.com.dycc.party_org.member.param.MemberParam;
import cn.com.dycc.study_manage.integral.param.Pb_Integral_LogParam;

/**
 * 
 * Description: 党员业务层
 * Author: Liket
 * Version: 1.0
 * Create Date Time: 2018年6月22日 上午10:13:00.
 * Update Date Time: 
 * @see
 */
public interface MemberService {
	int addMember(MemberParam member,HttpServletRequest req)throws MemberNotFoundException;
	
	int deleteMember(String user_id,HttpServletRequest req)throws MemberNotFoundException;
	
	int deleteAllMember(String user_ids[],HttpServletRequest req)throws MemberNotFoundException;
	
	int updateMember(MemberParam member,HttpServletRequest req)throws MemberNotFoundException;

	Member findMember(String user_id,HttpServletRequest req)throws MemberNotFoundException;
	
	UserChildAndMember findMemberByUserId(String user_id,HttpServletRequest req)throws MemberNotFoundException;

	//查询所有党员
	List<UserAndMember> findAllMember(FindMemberParam param,HttpServletRequest req)throws MemberNotFoundException;
	List<UserChildAndMember> findAllMemberByParam(FindMemberParam param,HttpServletRequest req)throws MemberNotFoundException;
	//统计说有党员
	String findAllMemberCount(FindMemberParam param,HttpServletRequest req)throws MemberNotFoundException;

	//统计说有党员
	String findAllMemberCountByParam(FindMemberParam param,HttpServletRequest req)throws MemberNotFoundException;

	CountMember countMember(HttpServletRequest req)throws MemberNotFoundException;
	
	AllInfo allInfoCount(HttpServletRequest req)throws MemberNotFoundException;
	
	//根据积分排名获取党员信息
	List<Pb_Integral_LogCount> countMemberByIntegral(HttpServletRequest req,Pb_Integral_LogParam param)throws MemberNotFoundException;
	
}
